import { SET_DATA } from './constant';

import { ActionContext } from 'vuex';
import { usesrState } from './store';
export default {
  [SET_DATA]({ commit }: ActionContext<usesrState, unknown>): void {
    console.log('action执行成功');
    setTimeout(function () {
      const payload = '微信授权';
      commit(SET_DATA, payload);
    }, 2000);
  },
};
